Helpful Information
 
 
Category: SteamID
SteamID => Steam Community URL

I have this function written in php that changes a designated steamid to their assigned Steam CommunityURL.
<?php
function getFriendId($steamId)
{
$gameType = 0;
$authServer = 0;
$clientId = '';
$steamId = str_replace('STEAM_', '' ,$steamId);
$parts = explode(':', $steamId);
$gameType = $parts[0];
$authServer = $parts[1];
$clientId = $parts[2];
$result = bcadd((bcadd('76561197960265728', $authServer)), (bcmul($clientId, '2')));
return $result;
}
?>

So I have a user profile field assigned to SteamID, people can put their steamid, and etc.

Now is this possible to put this on postbit_legacy so that it converts the steamid into the community url and echo it in the menu of when you click on a persons username?

This is what I have so far, which is for the SteamID.
<if condition="$post['field7']">
<tr><td class="vbmenu_option"><a href="http://steamid.esportsea.com/?action=search&type=single&key=steam_id&query=$post[field7]">SteamID: $post[field7]</a></div></if></td></tr>

What I want but don't know how to do: Grab field7, convert it into the steam community url, and echo it in a new vbmenu option

I hope somebody can help me out. Thank you very much.

Anybody?

Bump!










privacy (GDPR)